package com.testfileupload.uploadimg.design.combination;

public class Leaf implements ILeaf{
    //叶子的名称
    private String name = "";
    //叶子的职位
    private String position = "";
    //叶子的薪水
    private int salory = 0;

    public Leaf(String name, String position, int salory) {
        this.name = name;
        this.position = position;
        this.salory = salory;
    }

    @Override
    public String getInfo() {
        String info = "";
        info = "名称：" + this.name;
        info = info + "职位" + this.position;
        info = info + "薪水" + this.salory;
        return info;
    }
}
